package com.youlai.boot.system.model.QB;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("equipment")
public class Equipment {
    private Integer id;
    @NotBlank(message="文件类型不能为空格")
    private String eqtype;
    @NotBlank(message="文件名称不能为空格")
    private String eqname;
    @NotBlank(message="文件编号不能为空格")
    private String eqnumber;

    private String picUrl;//图片地址
    @TableField(exist=false)
    private List<String> picUrls;

    private String fileName;//文件名称

    private String fileUrl;//文件地址

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime addtime;
}
